import Films from '../views/Films/Films'
import ComingSoon from '../views/comingSoon/ComingSoon'
import Top250 from '../views/Top250/Top250'
import {
    Redirect
  } from "react-router-dom"
const routes=[
    {
        path:'/',
        exact:true,
        render:()=><Redirect to="/films"></Redirect>
    },
    {
        path:'/films',
        component:Films,
        children:[
            {
                path:'/films',
                exact:true,
                render:()=><Redirect to="/films/top250"></Redirect>
            },
            {
                path:'/films/top250',
                component:Top250
            },
            {
                path:'/films/comingSoon',
                component:ComingSoon
            }
        ]
    }
]
export default routes